<?php

namespace common\widgets;

class JsonEditorWidget extends \beowulfenator\JsonEditor\JsonEditorWidget
{

    /**
     * {@inheritdoc}
     */
    public function init()
    {
        parent::init();
    }

    /**
     * {@inheritdoc}
     */
    public function run()
    {
        $this->view->registerJs('JSONEditor.plugins.select2.width = "300px";');
        parent::run();
    }
}
